package com.example.designpartten.decorator;

/**
 * @author hql
 * @date 2020/4/14 11:10
 */
public abstract class Decorator extends Compent {

    private Compent compent;

    public Decorator(Compent compent) {
        this.compent = compent;
    }

    @Override
    public void doSomething() {
        this.compent.doSomething();
    }
}
